package com.leen.admin.repository;

import com.leen.admin.entity.DictDetail;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface DictdetailRepository extends CrudRepository<DictDetail,Long>, JpaSpecificationExecutor<DictDetail> {

    @Query(value = "from DictDetail where dictId=:dictId  and del=0")
    List<DictDetail> findByDictId(@Param("dictId") long dictId);
}
